package com.zkr.thresho.model;

import com.zkr.util.PageVo;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by lenovo on 2021/1/8.
 */
@Data
public class ThreshoSelectVo extends PageVo{

    private Integer userId;
    private Integer materialId;
    //法人编码
    private String legalPersonCode;
    private String legalPersonName;
    //备件编码
    private String materialCode;
    private String materialName;
    //备件小类编码
    private Integer id;
    private String code;
    private String name;
    //修改人员
    private String updateName;
    //修改的最早时间
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    private Date updateTimezao;
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    private Date updateTimeove;
    //阀值最大值
    private Integer threshonummax;
    //阀值最小值
    private Integer threshonummin;
    //状态
    private Boolean status;
    //备件数量阀值
    @NotNull(message = "数量阀值不能为空")
    @Max(message = "数量阀值不能超过9999", value =9999 )
    private Integer threshonum;
    //计量单位
    private String materialUnit;
    //是否可借用
    private String isBorrowable;
    //是否可销售
    private String sellable;
    //创建人
    private String creatorName;
    //备注
    private String remark;
    //修改时间
    private Date updateTime;
    private Date creatorTime;

    private String createName;
    private Date createTime;
    private Date updateStartTime;
    private Date updateEndTime;




}
